import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const DOCTOR: AppRouteRecordRaw = {
  path: '/doctor',
  name: 'Doctor',
  component: DEFAULT_LAYOUT,
  // redirect: '/doctor/doctorHome',
  // component: () => import('@/views/doctor/taskList.vue'),
  meta: {
    locale: 'menu.doctor',
    requiresAuth: true,
    icon: 'iconfont icon-shenhemokuai1',
    hideInMenu: true,
    order: 5,
    roles: ['user'],
    permCode: 'B010000000',
  },
  children: [
    {
      path: 'doctorHome',
      name: 'DoctorHome',
      component: () => import('@/views/doctor/taskList.vue'),
      meta: {
        locale: 'menu.doctor',
        permCode: 'B010000000',
        requiresAuth: true,
        // hideInMenu: true,
        roles: ['user'],
        // order: 5,
      },
    },
    {
      path: 'doctorDetail',
      name: 'DoctorDetail',
      component: () => import('@/views/doctor/taskDetail.vue'),
      meta: {
        requiresAuth: true,
        // hideInMenu: true,
        locale: 'menu.doctorDetail',
        permCode: 'B010000000',
        roles: ['user'],
        // order: 6,
      },
    }
  ]
}
export default DOCTOR;